<?php
namespace App\Util;
use Excel;

class ExcelHelper
{

    public static function export($name,$sheetName,$data)
    {
        Excel::create($name,function($excel) use ($data,$sheetName){
            $excel->sheet($sheetName, function($sheet) use ($data){
                $sheet->rows($data);
            });
        })->export('xls');
    }


    public static function import(){

    }
}
